package cn.zyq.ykb.system.task.delayQueue;

import com.alibaba.fastjson.JSON;
import lombok.Data;

@Data
public class TaskBase {
    private String identifier;

    /**
     * 数据类型（1任务订单过期  2道具任务过期）
     */
    private Integer type;

    /**
     * 数据业务ID
     */
    private String serviceID;

    public TaskBase(String identifier) {
        this.identifier = identifier;
    }

    public TaskBase(String identifier, Integer type, String serviceID) {
        this.identifier = identifier;
        this.type = type;
        this.serviceID = serviceID;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;

    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
